{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "__Author:__ Bram Van de Sande\n",
    "\n",
    "__Date:__ 18 DEC 2018\n",
    "\n",
    "__Outline:__ Example notebook that demonstrates how to create a loom file."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "import pandas as pd\n",
    "from pyscenic.export import export2loom\n",
    "from pyscenic.utils import load_motifs\n",
    "from pyscenic.transform import df2regulons"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "RESOURCES_FOLDER = \"./data/\"\n",
    "EXP_MTX_FNAME = os.path.join(RESOURCES_FOLDER, \"GSE60361.genes_x_cells.tsv\")\n",
    "MOTIFS_FNAME = os.path.join(RESOURCES_FOLDER, \"GSE60361.motifs.csv\")\n",
    "ANNOTATIONS_FNAME = os.path.join(RESOURCES_FOLDER, \"GSE60361.annotations.csv\") \n",
    "LOOM_FILE = os.path.join(RESOURCES_FOLDER, \"GSE60361.loom\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "!gunzip {RESOURCES_FOLDER}/*.gz"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "GSE60361.annotations.csv   GSE60361.motifs.csv\n",
      "GSE60361.genes_x_cells.tsv README.txt\n"
     ]
    }
   ],
   "source": [
    "!ls {RESOURCES_FOLDER}"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Load necessary files"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "exp_mtx = pd.read_csv(EXP_MTX_FNAME, index_col=0, sep='\\t').T"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th>cell_id</th>\n",
       "      <th>Tspan12</th>\n",
       "      <th>Tshz1</th>\n",
       "      <th>Fnbp1l</th>\n",
       "      <th>Adamts15</th>\n",
       "      <th>Cldn12</th>\n",
       "      <th>Rxfp1</th>\n",
       "      <th>2310042E22Rik</th>\n",
       "      <th>Sema3c</th>\n",
       "      <th>Jam2</th>\n",
       "      <th>Apbb1ip</th>\n",
       "      <th>...</th>\n",
       "      <th>Gm20826_loc1</th>\n",
       "      <th>Gm20826_loc2</th>\n",
       "      <th>Gm20877_loc2</th>\n",
       "      <th>Gm20877_loc1</th>\n",
       "      <th>Gm20865_loc4</th>\n",
       "      <th>Gm20738_loc4</th>\n",
       "      <th>Gm20738_loc6</th>\n",
       "      <th>Gm21943_loc1</th>\n",
       "      <th>Gm21943_loc3</th>\n",
       "      <th>Gm20738_loc3</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1772071015_C02</th>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>11</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1772071017_G12</th>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1772071017_A05</th>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>25</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1772071014_B06</th>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1772067065_H06</th>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>5 rows × 19972 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "cell_id         Tspan12  Tshz1  Fnbp1l  Adamts15  Cldn12  Rxfp1  \\\n",
       "1772071015_C02        0      3       3         0       1      0   \n",
       "1772071017_G12        0      1       1         0       1      0   \n",
       "1772071017_A05        0      0       6         0       1      0   \n",
       "1772071014_B06        3      2       4         0       0      0   \n",
       "1772067065_H06        0      2       1         0       0      0   \n",
       "\n",
       "cell_id         2310042E22Rik  Sema3c  Jam2  Apbb1ip      ...       \\\n",
       "1772071015_C02              0      11     1        0      ...        \n",
       "1772071017_G12              0       0     0        0      ...        \n",
       "1772071017_A05              2      25     1        0      ...        \n",
       "1772071014_B06              3       1     0        0      ...        \n",
       "1772067065_H06              0      10     0        0      ...        \n",
       "\n",
       "cell_id         Gm20826_loc1  Gm20826_loc2  Gm20877_loc2  Gm20877_loc1  \\\n",
       "1772071015_C02             0             0             0             0   \n",
       "1772071017_G12             0             0             0             0   \n",
       "1772071017_A05             0             0             0             0   \n",
       "1772071014_B06             0             0             0             0   \n",
       "1772067065_H06             0             0             0             0   \n",
       "\n",
       "cell_id         Gm20865_loc4  Gm20738_loc4  Gm20738_loc6  Gm21943_loc1  \\\n",
       "1772071015_C02             0             0             0             0   \n",
       "1772071017_G12             0             0             0             0   \n",
       "1772071017_A05             0             0             0             0   \n",
       "1772071014_B06             0             0             0             0   \n",
       "1772067065_H06             0             0             0             0   \n",
       "\n",
       "cell_id         Gm21943_loc3  Gm20738_loc3  \n",
       "1772071015_C02             0             0  \n",
       "1772071017_G12             0             0  \n",
       "1772071017_A05             0             0  \n",
       "1772071014_B06             0             0  \n",
       "1772067065_H06             0             0  \n",
       "\n",
       "[5 rows x 19972 columns]"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "exp_mtx.head()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Check if expression matrix has the correct format."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "def is_valid_exp_matrix(mtx):\n",
    "    return (all(isinstance(idx, str) for idx in mtx.index) \n",
    "            and all(isinstance(idx, str) for idx in mtx.columns)\n",
    "            and (mtx.index.nlevels == 1)\n",
    "            and (mtx.columns.nlevels == 1))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "is_valid_exp_matrix(exp_mtx)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "motifs = load_motifs(MOTIFS_FNAME)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead tr th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe thead tr:last-of-type th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th colspan=\"8\" halign=\"left\">Enrichment</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>AUC</th>\n",
       "      <th>Annotation</th>\n",
       "      <th>Context</th>\n",
       "      <th>MotifSimilarityQvalue</th>\n",
       "      <th>NES</th>\n",
       "      <th>OrthologousIdentity</th>\n",
       "      <th>RankAtMax</th>\n",
       "      <th>TargetGenes</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>TF</th>\n",
       "      <th>MotifID</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th rowspan=\"5\" valign=\"top\">Arnt2</th>\n",
       "      <th>cisbp__M5290</th>\n",
       "      <td>0.012173</td>\n",
       "      <td>gene is orthologous to FBgn0264075 in D. melan...</td>\n",
       "      <td>(activating, weight&gt;75.0%, mm9-500bp-upstream-...</td>\n",
       "      <td>0.000646</td>\n",
       "      <td>3.286012</td>\n",
       "      <td>0.408708</td>\n",
       "      <td>994</td>\n",
       "      <td>[(Fam134a, 0.4679974726788937), (Ubap2l, 0.509...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>taipale__BHLHB3_full_NKCACGTGMN_repr</th>\n",
       "      <td>0.012137</td>\n",
       "      <td>motif similar to flyfactorsurvey__tgo_cyc_SANG...</td>\n",
       "      <td>(activating, weight&gt;75.0%, mm9-500bp-upstream-...</td>\n",
       "      <td>0.000036</td>\n",
       "      <td>3.264832</td>\n",
       "      <td>0.453271</td>\n",
       "      <td>1414</td>\n",
       "      <td>[(Ubap2l, 0.4679974726788937), (Fam134a, 0.509...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>hocomoco__BHE40_HUMAN.H10MO.A</th>\n",
       "      <td>0.011742</td>\n",
       "      <td>gene is orthologous to FBgn0264075 in D. melan...</td>\n",
       "      <td>(activating, weight&gt;75.0%, mm9-500bp-upstream-...</td>\n",
       "      <td>0.000524</td>\n",
       "      <td>3.031060</td>\n",
       "      <td>0.408708</td>\n",
       "      <td>625</td>\n",
       "      <td>[(Tmem55b, 0.4679974726788937), (Ubap2l, 0.509...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>swissregulon__hs__AHR_ARNT_ARNT2.p2</th>\n",
       "      <td>0.011815</td>\n",
       "      <td>gene is orthologous to ENSG00000172379 in H. s...</td>\n",
       "      <td>(activating, weight&gt;75.0%, mm9-500bp-upstream-...</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>3.074206</td>\n",
       "      <td>0.977528</td>\n",
       "      <td>2493</td>\n",
       "      <td>[(Ntrk2, 0.4679974726788937), (Rqcd1, 0.509033...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>swissregulon__hs__SREBF1_2.p2</th>\n",
       "      <td>0.011959</td>\n",
       "      <td>motif similar to flyfactorsurvey__tgo_cyc_SANG...</td>\n",
       "      <td>(activating, weight&gt;75.0%, mm9-500bp-upstream-...</td>\n",
       "      <td>0.000575</td>\n",
       "      <td>3.159713</td>\n",
       "      <td>0.453271</td>\n",
       "      <td>126</td>\n",
       "      <td>[(Ubap2l, 0.4679974726788937), (Ube2b, 0.50903...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                           Enrichment  \\\n",
       "                                                  AUC   \n",
       "TF    MotifID                                           \n",
       "Arnt2 cisbp__M5290                           0.012173   \n",
       "      taipale__BHLHB3_full_NKCACGTGMN_repr   0.012137   \n",
       "      hocomoco__BHE40_HUMAN.H10MO.A          0.011742   \n",
       "      swissregulon__hs__AHR_ARNT_ARNT2.p2    0.011815   \n",
       "      swissregulon__hs__SREBF1_2.p2          0.011959   \n",
       "\n",
       "                                                                                               \\\n",
       "                                                                                   Annotation   \n",
       "TF    MotifID                                                                                   \n",
       "Arnt2 cisbp__M5290                          gene is orthologous to FBgn0264075 in D. melan...   \n",
       "      taipale__BHLHB3_full_NKCACGTGMN_repr  motif similar to flyfactorsurvey__tgo_cyc_SANG...   \n",
       "      hocomoco__BHE40_HUMAN.H10MO.A         gene is orthologous to FBgn0264075 in D. melan...   \n",
       "      swissregulon__hs__AHR_ARNT_ARNT2.p2   gene is orthologous to ENSG00000172379 in H. s...   \n",
       "      swissregulon__hs__SREBF1_2.p2         motif similar to flyfactorsurvey__tgo_cyc_SANG...   \n",
       "\n",
       "                                                                                               \\\n",
       "                                                                                      Context   \n",
       "TF    MotifID                                                                                   \n",
       "Arnt2 cisbp__M5290                          (activating, weight>75.0%, mm9-500bp-upstream-...   \n",
       "      taipale__BHLHB3_full_NKCACGTGMN_repr  (activating, weight>75.0%, mm9-500bp-upstream-...   \n",
       "      hocomoco__BHE40_HUMAN.H10MO.A         (activating, weight>75.0%, mm9-500bp-upstream-...   \n",
       "      swissregulon__hs__AHR_ARNT_ARNT2.p2   (activating, weight>75.0%, mm9-500bp-upstream-...   \n",
       "      swissregulon__hs__SREBF1_2.p2         (activating, weight>75.0%, mm9-500bp-upstream-...   \n",
       "\n",
       "                                                                            \\\n",
       "                                           MotifSimilarityQvalue       NES   \n",
       "TF    MotifID                                                                \n",
       "Arnt2 cisbp__M5290                                      0.000646  3.286012   \n",
       "      taipale__BHLHB3_full_NKCACGTGMN_repr              0.000036  3.264832   \n",
       "      hocomoco__BHE40_HUMAN.H10MO.A                     0.000524  3.031060   \n",
       "      swissregulon__hs__AHR_ARNT_ARNT2.p2               0.000000  3.074206   \n",
       "      swissregulon__hs__SREBF1_2.p2                     0.000575  3.159713   \n",
       "\n",
       "                                                                          \\\n",
       "                                           OrthologousIdentity RankAtMax   \n",
       "TF    MotifID                                                              \n",
       "Arnt2 cisbp__M5290                                    0.408708       994   \n",
       "      taipale__BHLHB3_full_NKCACGTGMN_repr            0.453271      1414   \n",
       "      hocomoco__BHE40_HUMAN.H10MO.A                   0.408708       625   \n",
       "      swissregulon__hs__AHR_ARNT_ARNT2.p2             0.977528      2493   \n",
       "      swissregulon__hs__SREBF1_2.p2                   0.453271       126   \n",
       "\n",
       "                                                                                               \n",
       "                                                                                  TargetGenes  \n",
       "TF    MotifID                                                                                  \n",
       "Arnt2 cisbp__M5290                          [(Fam134a, 0.4679974726788937), (Ubap2l, 0.509...  \n",
       "      taipale__BHLHB3_full_NKCACGTGMN_repr  [(Ubap2l, 0.4679974726788937), (Fam134a, 0.509...  \n",
       "      hocomoco__BHE40_HUMAN.H10MO.A         [(Tmem55b, 0.4679974726788937), (Ubap2l, 0.509...  \n",
       "      swissregulon__hs__AHR_ARNT_ARNT2.p2   [(Ntrk2, 0.4679974726788937), (Rqcd1, 0.509033...  \n",
       "      swissregulon__hs__SREBF1_2.p2         [(Ubap2l, 0.4679974726788937), (Ube2b, 0.50903...  "
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "motifs.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "regulons = df2regulons(motifs)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "425"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(regulons)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Regulon(name='A430033K04Rik(+)', gene2weight=<frozendict {'Zfhx4': 1.2992339182219363, 'Frem1': 1.5581168405452308, 'Zbtb9': 1.0}>, transcription_factor='A430033K04Rik', context=frozenset({'activating', 'swissregulon__sacCer__AZF1.png'}), score=0.42059077585411814)"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regulons[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\"\",\"level1class\"\n",
      "\"1772071015_C02\",\"interneurons\"\n",
      "\"1772071017_G12\",\"interneurons\"\n",
      "\"1772071017_A05\",\"interneurons\"\n",
      "\"1772071014_B06\",\"interneurons\"\n",
      "\"1772067065_H06\",\"interneurons\"\n",
      "\"1772071017_E02\",\"interneurons\"\n",
      "\"1772067065_B07\",\"interneurons\"\n",
      "\"1772067060_B09\",\"interneurons\"\n",
      "\"1772071014_E04\",\"interneurons\"\n"
     ]
    }
   ],
   "source": [
    "!head {ANNOTATIONS_FNAME}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [],
   "source": [
    "with open(ANNOTATIONS_FNAME, \"rt\") as f:\n",
    "    annotations = dict(line.strip().replace(\"\\\"\", \"\").split(\",\") for idx, line in enumerate(f) if idx > 0)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Check if annotation mapping has the correct format."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [],
   "source": [
    "def is_valid_annotation_mapping(m):\n",
    "    return (all(isinstance(k, str) for k in m.keys()) \n",
    "            and all(isinstance(v, str) for v in m.values()))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "is_valid_annotation_mapping(annotations)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'1772071015_C02': 'interneurons',\n",
       " '1772071017_G12': 'interneurons',\n",
       " '1772071017_A05': 'interneurons',\n",
       " '1772071014_B06': 'interneurons',\n",
       " '1772067065_H06': 'interneurons',\n",
       " '1772071017_E02': 'interneurons',\n",
       " '1772067065_B07': 'interneurons',\n",
       " '1772067060_B09': 'interneurons',\n",
       " '1772071014_E04': 'interneurons',\n",
       " '1772071015_D04': 'interneurons',\n",
       " '1772071015_C11': 'interneurons',\n",
       " '1772071017_D04': 'interneurons',\n",
       " '1772071017_D06': 'interneurons',\n",
       " '1772067082_D07': 'interneurons',\n",
       " '1772071017_F09': 'interneurons',\n",
       " '1772071017_A09': 'interneurons',\n",
       " '1772067094_C05': 'interneurons',\n",
       " '1772067059_B06': 'interneurons',\n",
       " '1772067096_E05': 'interneurons',\n",
       " '1772066089_C05': 'interneurons',\n",
       " '1772067094_F04': 'interneurons',\n",
       " '1772071045_A01': 'interneurons',\n",
       " '1772071015_C08': 'interneurons',\n",
       " '1772071045_D06': 'interneurons',\n",
       " '1772071017_A03': 'interneurons',\n",
       " '1772071017_F07': 'interneurons',\n",
       " '1772071017_E06': 'interneurons',\n",
       " '1772067066_C10': 'interneurons',\n",
       " '1772071017_B05': 'interneurons',\n",
       " '1772071014_E06': 'interneurons',\n",
       " '1772067058_D11': 'interneurons',\n",
       " '1772071014_B04': 'interneurons',\n",
       " '1772067066_B09': 'interneurons',\n",
       " '1772071017_E10': 'interneurons',\n",
       " '1772071015_B08': 'interneurons',\n",
       " '1772071014_C11': 'interneurons',\n",
       " '1772067066_E10': 'interneurons',\n",
       " '1772067065_F11': 'interneurons',\n",
       " '1772071014_H11': 'interneurons',\n",
       " '1772071017_B11': 'interneurons',\n",
       " '1772071014_A07': 'interneurons',\n",
       " '1772071017_B03': 'interneurons',\n",
       " '1772071015_B04': 'interneurons',\n",
       " '1772071014_D03': 'interneurons',\n",
       " '1772067065_D06': 'interneurons',\n",
       " '1772067066_H08': 'interneurons',\n",
       " '1772067096_G11': 'interneurons',\n",
       " '1772071017_G11': 'interneurons',\n",
       " '1772067054_E12': 'interneurons',\n",
       " '1772067083_B12': 'interneurons',\n",
       " '1772067054_G01': 'interneurons',\n",
       " '1772067096_A02': 'interneurons',\n",
       " '1772067093_H05': 'interneurons',\n",
       " '1772067083_B09': 'interneurons',\n",
       " '1772071014_H12': 'interneurons',\n",
       " '1772067082_H11': 'interneurons',\n",
       " '1772067094_D06': 'interneurons',\n",
       " '1772071015_F03': 'interneurons',\n",
       " '1772071015_B11': 'interneurons',\n",
       " '1772071014_G10': 'interneurons',\n",
       " '1772067066_B07': 'interneurons',\n",
       " '1772067065_G01': 'interneurons',\n",
       " '1772071015_F07': 'interneurons',\n",
       " '1772067065_E07': 'interneurons',\n",
       " '1772071015_C10': 'interneurons',\n",
       " '1772067063_E06': 'interneurons',\n",
       " '1772067065_A11': 'interneurons',\n",
       " '1772071015_G12': 'interneurons',\n",
       " '1772067058_D07': 'interneurons',\n",
       " '1772067065_D01': 'interneurons',\n",
       " '1772071015_A02': 'interneurons',\n",
       " '1772071014_F01': 'interneurons',\n",
       " '1772071015_D06': 'interneurons',\n",
       " '1772071017_B02': 'interneurons',\n",
       " '1772071017_D07': 'interneurons',\n",
       " '1772071017_A11': 'interneurons',\n",
       " '1772071017_B01': 'interneurons',\n",
       " '1772071017_C07': 'interneurons',\n",
       " '1772071015_H11': 'interneurons',\n",
       " '1772071014_A05': 'interneurons',\n",
       " '1772071017_A10': 'interneurons',\n",
       " '1772071017_C08': 'interneurons',\n",
       " '1772071017_B09': 'interneurons',\n",
       " '1772067066_A09': 'interneurons',\n",
       " '1772067065_A12': 'interneurons',\n",
       " '1772071015_G04': 'interneurons',\n",
       " '1772067066_B02': 'interneurons',\n",
       " '1772071015_E06': 'interneurons',\n",
       " '1772067064_E04': 'interneurons',\n",
       " '1772071015_C01': 'interneurons',\n",
       " '1772071014_F06': 'interneurons',\n",
       " '1772071017_D10': 'interneurons',\n",
       " '1772071017_C05': 'interneurons',\n",
       " '1772071014_E05': 'interneurons',\n",
       " '1772071017_E04': 'interneurons',\n",
       " '1772058148_D08': 'interneurons',\n",
       " '1772067065_F07': 'interneurons',\n",
       " '1772062128_G08': 'interneurons',\n",
       " '1772066102_B02': 'interneurons',\n",
       " '1772063077_B03': 'interneurons',\n",
       " '1772062114_H03': 'interneurons',\n",
       " '1772066074_A03': 'interneurons',\n",
       " '1772066102_C09': 'interneurons',\n",
       " '1772062114_E02': 'interneurons',\n",
       " '1772063068_G07': 'interneurons',\n",
       " '1772062115_A12': 'interneurons',\n",
       " '1772062113_F08': 'interneurons',\n",
       " '1772066108_B02': 'interneurons',\n",
       " '1772066102_G06': 'interneurons',\n",
       " '1772067059_E03': 'interneurons',\n",
       " '1772071035_G04': 'interneurons',\n",
       " '1772066102_C06': 'interneurons',\n",
       " '1772067057_H02': 'interneurons',\n",
       " '1772062115_G05': 'interneurons',\n",
       " '1772066097_G03': 'interneurons',\n",
       " '1772063064_G08': 'interneurons',\n",
       " '1772067082_B01': 'interneurons',\n",
       " '1772066099_C04': 'interneurons',\n",
       " '1772071040_A12': 'interneurons',\n",
       " '1772063078_F01': 'interneurons',\n",
       " '1772067082_F03': 'interneurons',\n",
       " '1772071044_A03': 'interneurons',\n",
       " '1772067060_B04': 'interneurons',\n",
       " '1772071045_C11': 'interneurons',\n",
       " '1772067083_B10': 'interneurons',\n",
       " '1772066077_E08': 'interneurons',\n",
       " '1772063078_F12': 'interneurons',\n",
       " '1772062115_C05': 'interneurons',\n",
       " '1772066099_C11': 'interneurons',\n",
       " '1772063064_G03': 'interneurons',\n",
       " '1772071036_E09': 'interneurons',\n",
       " '1772062128_D11': 'interneurons',\n",
       " '1772067058_A12': 'interneurons',\n",
       " '1772063078_B02': 'interneurons',\n",
       " '1772066108_E06': 'interneurons',\n",
       " '1772066100_A12': 'interneurons',\n",
       " '1772066073_B03': 'interneurons',\n",
       " '1772067076_A06': 'interneurons',\n",
       " '1772062111_G03': 'interneurons',\n",
       " '1772063061_H03': 'interneurons',\n",
       " '1772066097_H05': 'interneurons',\n",
       " '1772067065_A02': 'interneurons',\n",
       " '1772066077_H12': 'interneurons',\n",
       " '1772062128_G04': 'interneurons',\n",
       " '1772062109_H03': 'interneurons',\n",
       " '1772063063_F01': 'interneurons',\n",
       " '1772062128_B10': 'interneurons',\n",
       " '1772063061_B03': 'interneurons',\n",
       " '1772063061_B05': 'interneurons',\n",
       " '1772058177_G09': 'interneurons',\n",
       " '1772066095_D02': 'interneurons',\n",
       " '1772066097_G12': 'interneurons',\n",
       " '1772066097_G02': 'interneurons',\n",
       " '1772066100_G07': 'interneurons',\n",
       " '1772066097_H01': 'interneurons',\n",
       " '1772071045_H03': 'interneurons',\n",
       " '1772067083_F08': 'interneurons',\n",
       " '1772067083_H01': 'interneurons',\n",
       " '1772066101_F04': 'interneurons',\n",
       " '1772067058_H12': 'interneurons',\n",
       " '1772067082_F02': 'interneurons',\n",
       " '1772067058_H05': 'interneurons',\n",
       " '1772071035_B09': 'interneurons',\n",
       " '1772071015_H07': 'interneurons',\n",
       " '1772071036_C02': 'interneurons',\n",
       " '1772066108_F04': 'interneurons',\n",
       " '1772071035_H02': 'interneurons',\n",
       " '1772062109_H07': 'interneurons',\n",
       " '1772067076_E03': 'interneurons',\n",
       " '1772067059_G10': 'interneurons',\n",
       " '1772067076_D04': 'interneurons',\n",
       " '1772066099_H06': 'interneurons',\n",
       " '1772066102_G12': 'interneurons',\n",
       " '1772071035_E07': 'interneurons',\n",
       " '1772066073_B02': 'interneurons',\n",
       " '1772067076_A03': 'interneurons',\n",
       " '1772066102_B11': 'interneurons',\n",
       " '1772066089_A01': 'interneurons',\n",
       " '1772066099_A01': 'interneurons',\n",
       " '1772067057_H04': 'interneurons',\n",
       " '1772066102_C11': 'interneurons',\n",
       " '1772071045_A10': 'interneurons',\n",
       " '1772066096_G01': 'interneurons',\n",
       " '1772066102_H10': 'interneurons',\n",
       " '1772066099_C12': 'interneurons',\n",
       " '1772071044_H10': 'interneurons',\n",
       " '1772067083_D10': 'interneurons',\n",
       " '1772066099_E04': 'interneurons',\n",
       " '1772066100_D08': 'interneurons',\n",
       " '1772066099_H02': 'interneurons',\n",
       " '1772066089_H04': 'interneurons',\n",
       " '1772066089_B06': 'interneurons',\n",
       " '1772066102_G08': 'interneurons',\n",
       " '1772066102_A04': 'interneurons',\n",
       " '1772066097_B06': 'interneurons',\n",
       " '1772067076_E04': 'interneurons',\n",
       " '1772066097_C06': 'interneurons',\n",
       " '1772067057_D12': 'interneurons',\n",
       " '1772066100_A05': 'interneurons',\n",
       " '1772066101_F03': 'interneurons',\n",
       " '1772071014_A06': 'interneurons',\n",
       " '1772071015_A11': 'interneurons',\n",
       " '1772071015_C09': 'interneurons',\n",
       " '1772063071_A06': 'interneurons',\n",
       " '1772058148_F09': 'interneurons',\n",
       " '1772067066_H09': 'interneurons',\n",
       " '1772067065_G10': 'interneurons',\n",
       " '1772071015_A05': 'interneurons',\n",
       " '1772067065_B10': 'interneurons',\n",
       " '1772067065_A01': 'interneurons',\n",
       " '1772062128_F10': 'interneurons',\n",
       " '1772071017_H06': 'interneurons',\n",
       " '1772071014_A12': 'interneurons',\n",
       " '1772067065_F08': 'interneurons',\n",
       " '1772058148_H04': 'interneurons',\n",
       " '1772066102_B06': 'interneurons',\n",
       " '1772063077_H05': 'interneurons',\n",
       " '1772067076_A12': 'interneurons',\n",
       " '1772067065_B12': 'interneurons',\n",
       " '1772067065_G11': 'interneurons',\n",
       " '1772067066_A10': 'interneurons',\n",
       " '1772067066_E02': 'interneurons',\n",
       " '1772067066_A11': 'interneurons',\n",
       " '1772067065_B09': 'interneurons',\n",
       " '1772067065_F10': 'interneurons',\n",
       " '1772063063_H03': 'interneurons',\n",
       " '1772071017_A01': 'interneurons',\n",
       " '1772067066_D04': 'interneurons',\n",
       " '1772067065_G12': 'interneurons',\n",
       " '1772071017_G05': 'interneurons',\n",
       " '1772071017_D12': 'interneurons',\n",
       " '1772071015_A01': 'interneurons',\n",
       " '1772071017_H10': 'interneurons',\n",
       " '1772063070_B10': 'interneurons',\n",
       " '1772063065_C02': 'interneurons',\n",
       " '1772071015_E10': 'interneurons',\n",
       " '1772067082_B09': 'interneurons',\n",
       " '1772062115_H01': 'interneurons',\n",
       " '1772071041_B06': 'interneurons',\n",
       " '1772066090_C05': 'interneurons',\n",
       " '1772067096_F07': 'interneurons',\n",
       " '1772071015_F05': 'interneurons',\n",
       " '1772067083_G04': 'interneurons',\n",
       " '1772062115_G06': 'interneurons',\n",
       " '1772071015_G09': 'interneurons',\n",
       " '1772066095_F07': 'interneurons',\n",
       " '1772071017_G02': 'interneurons',\n",
       " '1772062111_C11': 'interneurons',\n",
       " '1772058148_H03': 'interneurons',\n",
       " '1772066100_D06': 'interneurons',\n",
       " '1772071017_C10': 'interneurons',\n",
       " '1772071014_B10': 'interneurons',\n",
       " '1772062128_G06': 'interneurons',\n",
       " '1772067057_A08': 'interneurons',\n",
       " '1772063068_F12': 'interneurons',\n",
       " '1772063074_E11': 'interneurons',\n",
       " '1772066100_D04': 'interneurons',\n",
       " '1772066100_F03': 'interneurons',\n",
       " '1772067093_D01': 'interneurons',\n",
       " '1772066100_E01': 'interneurons',\n",
       " '1772067073_C01': 'interneurons',\n",
       " '1772067083_B11': 'interneurons',\n",
       " '1772067054_F12': 'interneurons',\n",
       " '1772058177_D04': 'interneurons',\n",
       " '1772067082_H03': 'interneurons',\n",
       " '1772071017_D01': 'interneurons',\n",
       " '1772067094_H08': 'interneurons',\n",
       " '1772067096_A01': 'interneurons',\n",
       " '1772058148_H08': 'interneurons',\n",
       " '1772067093_F03': 'interneurons',\n",
       " '1772071015_E08': 'interneurons',\n",
       " '1772067083_C02': 'interneurons',\n",
       " '1772066100_H07': 'interneurons',\n",
       " '1772071014_C04': 'interneurons',\n",
       " '1772067096_G05': 'interneurons',\n",
       " '1772071017_A08': 'interneurons',\n",
       " '1772066097_G04': 'interneurons',\n",
       " '1772067094_A09': 'interneurons',\n",
       " '1772067082_D05': 'interneurons',\n",
       " '1772067082_B03': 'interneurons',\n",
       " '1772063064_B06': 'interneurons',\n",
       " '1772067082_D04': 'interneurons',\n",
       " '1772067065_A08': 'interneurons',\n",
       " '1772066100_F08': 'interneurons',\n",
       " '1772067082_C02': 'interneurons',\n",
       " '1772067082_B02': 'interneurons',\n",
       " '1772067093_H07': 'interneurons',\n",
       " '1772071017_A06': 'interneurons',\n",
       " '1772071014_F12': 'interneurons',\n",
       " '1772071014_E02': 'interneurons',\n",
       " '1772067069_H02': 'pyramidal SS',\n",
       " '1772063071_B07': 'pyramidal SS',\n",
       " '1772067073_F04': 'pyramidal SS',\n",
       " '1772067069_A03': 'pyramidal SS',\n",
       " '1772067066_E04': 'pyramidal SS',\n",
       " '1772067063_C05': 'pyramidal SS',\n",
       " '1772067069_C12': 'pyramidal SS',\n",
       " '1772067064_C12': 'pyramidal SS',\n",
       " '1772071041_F07': 'pyramidal SS',\n",
       " '1772071040_B04': 'pyramidal SS',\n",
       " '1772067063_E09': 'pyramidal SS',\n",
       " '1772067070_D04': 'pyramidal SS',\n",
       " '1772067064_C07': 'pyramidal SS',\n",
       " '1772067069_A11': 'pyramidal SS',\n",
       " '1772067064_H09': 'pyramidal SS',\n",
       " '1772071040_B01': 'pyramidal SS',\n",
       " '1772067064_B04': 'pyramidal SS',\n",
       " '1772063063_E12': 'pyramidal SS',\n",
       " '1772067069_D10': 'pyramidal SS',\n",
       " '1772062109_B03': 'pyramidal SS',\n",
       " '1772067064_C09': 'pyramidal SS',\n",
       " '1772067064_D02': 'pyramidal SS',\n",
       " '1772067069_H10': 'pyramidal SS',\n",
       " '1772071017_G01': 'pyramidal SS',\n",
       " '1772067063_B02': 'pyramidal SS',\n",
       " '1772060240_A07': 'pyramidal SS',\n",
       " '1772067073_A01': 'pyramidal SS',\n",
       " '1772067064_B01': 'pyramidal SS',\n",
       " '1772067074_A06': 'pyramidal SS',\n",
       " '1772062116_B04': 'pyramidal SS',\n",
       " '1772071041_G09': 'pyramidal SS',\n",
       " '1772067069_B02': 'pyramidal SS',\n",
       " '1772067070_C01': 'pyramidal SS',\n",
       " '1772067070_A03': 'pyramidal SS',\n",
       " '1772071017_C06': 'pyramidal SS',\n",
       " '1772067064_B05': 'pyramidal SS',\n",
       " '1772067073_C12': 'pyramidal SS',\n",
       " '1772067064_C02': 'pyramidal SS',\n",
       " '1772067070_G11': 'pyramidal SS',\n",
       " '1772067074_F07': 'pyramidal SS',\n",
       " '1772067069_G06': 'pyramidal SS',\n",
       " '1772067070_F07': 'pyramidal SS',\n",
       " '1772071041_H11': 'pyramidal SS',\n",
       " '1772067066_A06': 'pyramidal SS',\n",
       " '1772071040_G08': 'pyramidal SS',\n",
       " '1772067064_G02': 'pyramidal SS',\n",
       " '1772071040_E01': 'pyramidal SS',\n",
       " '1772067070_F03': 'pyramidal SS',\n",
       " '1772067074_D05': 'pyramidal SS',\n",
       " '1772067069_G03': 'pyramidal SS',\n",
       " '1772067070_E11': 'pyramidal SS',\n",
       " '1772071017_D11': 'pyramidal SS',\n",
       " '1772071041_E12': 'pyramidal SS',\n",
       " '1772071041_F09': 'pyramidal SS',\n",
       " '1772071041_D09': 'pyramidal SS',\n",
       " '1772071041_H12': 'pyramidal SS',\n",
       " '1772067073_F08': 'pyramidal SS',\n",
       " '1772071041_D04': 'pyramidal SS',\n",
       " '1772071040_F05': 'pyramidal SS',\n",
       " '1772071041_E01': 'pyramidal SS',\n",
       " '1772071041_G07': 'pyramidal SS',\n",
       " '1772071041_G03': 'pyramidal SS',\n",
       " '1772071041_H09': 'pyramidal SS',\n",
       " '1772071041_G08': 'pyramidal SS',\n",
       " '1772067070_G08': 'pyramidal SS',\n",
       " '1772067064_F02': 'pyramidal SS',\n",
       " '1772067064_F01': 'pyramidal SS',\n",
       " '1772063063_H02': 'pyramidal SS',\n",
       " '1772063065_C11': 'pyramidal SS',\n",
       " '1772063071_G03': 'pyramidal SS',\n",
       " '1772063068_A01': 'pyramidal SS',\n",
       " '1772063071_E06': 'pyramidal SS',\n",
       " '1772071041_A04': 'pyramidal SS',\n",
       " '1772063068_B01': 'pyramidal SS',\n",
       " '1772063070_F03': 'pyramidal SS',\n",
       " '1772063063_G11': 'pyramidal SS',\n",
       " '1772063062_H11': 'pyramidal SS',\n",
       " '1772063077_D06': 'pyramidal SS',\n",
       " '1772071041_H10': 'pyramidal SS',\n",
       " '1772063064_D02': 'pyramidal SS',\n",
       " '1772067074_C05': 'pyramidal SS',\n",
       " '1772067066_B03': 'pyramidal SS',\n",
       " '1772063068_F11': 'pyramidal SS',\n",
       " '1772067070_D06': 'pyramidal SS',\n",
       " '1772067074_B09': 'pyramidal SS',\n",
       " '1772063077_D12': 'pyramidal SS',\n",
       " '1772067074_F03': 'pyramidal SS',\n",
       " '1772071041_C05': 'pyramidal SS',\n",
       " '1772067070_G12': 'pyramidal SS',\n",
       " '1772071041_A02': 'pyramidal SS',\n",
       " '1772067074_B01': 'pyramidal SS',\n",
       " '1772062115_G01': 'pyramidal SS',\n",
       " '1772067063_B12': 'pyramidal SS',\n",
       " '1772067063_H04': 'pyramidal SS',\n",
       " '1772067073_G09': 'pyramidal SS',\n",
       " '1772067069_E04': 'pyramidal SS',\n",
       " '1772067073_C04': 'pyramidal SS',\n",
       " '1772063071_H01': 'pyramidal SS',\n",
       " '1772063065_A10': 'pyramidal SS',\n",
       " '1772063068_D04': 'pyramidal SS',\n",
       " '1772067069_F05': 'pyramidal SS',\n",
       " '1772063068_F07': 'pyramidal SS',\n",
       " '1772063068_A02': 'pyramidal SS',\n",
       " '1772063063_E04': 'pyramidal SS',\n",
       " '1772063065_F02': 'pyramidal SS',\n",
       " '1772067074_F12': 'pyramidal SS',\n",
       " '1772067064_A01': 'pyramidal SS',\n",
       " '1772063064_B11': 'pyramidal SS',\n",
       " '1772062128_E10': 'pyramidal SS',\n",
       " '1772063065_F03': 'pyramidal SS',\n",
       " '1772060224_B06': 'pyramidal SS',\n",
       " '1772071041_H05': 'pyramidal SS',\n",
       " '1772062109_E06': 'pyramidal SS',\n",
       " '1772071040_G09': 'pyramidal SS',\n",
       " '1772071041_E10': 'pyramidal SS',\n",
       " '1772062128_D07': 'pyramidal SS',\n",
       " '1772062128_D10': 'pyramidal SS',\n",
       " '1772063078_B12': 'pyramidal SS',\n",
       " '1772071041_A06': 'pyramidal SS',\n",
       " '1772060240_F12': 'pyramidal SS',\n",
       " '1772063065_D04': 'pyramidal SS',\n",
       " '1772062116_B11': 'pyramidal SS',\n",
       " '1772063078_A04': 'pyramidal SS',\n",
       " '1772063068_D03': 'pyramidal SS',\n",
       " '1772062128_D12': 'pyramidal SS',\n",
       " '1772063070_E01': 'pyramidal SS',\n",
       " '1772062116_G05': 'pyramidal SS',\n",
       " '1772063068_H12': 'pyramidal SS',\n",
       " '1772063070_B11': 'pyramidal SS',\n",
       " '1772071041_A05': 'pyramidal SS',\n",
       " '1772060240_H05': 'pyramidal SS',\n",
       " '1772063065_F04': 'pyramidal SS',\n",
       " '1772063065_G10': 'pyramidal SS',\n",
       " '1772067074_D10': 'pyramidal SS',\n",
       " '1772071040_B12': 'pyramidal SS',\n",
       " '1772063065_D12': 'pyramidal SS',\n",
       " '1772063065_B02': 'pyramidal SS',\n",
       " '1772067074_F10': 'pyramidal SS',\n",
       " '1772060224_H02': 'pyramidal SS',\n",
       " '1772063068_E06': 'pyramidal SS',\n",
       " '1772071041_B01': 'pyramidal SS',\n",
       " '1772060226_F11': 'pyramidal SS',\n",
       " '1772067069_C08': 'pyramidal SS',\n",
       " '1772063065_C08': 'pyramidal SS',\n",
       " '1772062116_A06': 'pyramidal SS',\n",
       " '1772063061_A05': 'pyramidal SS',\n",
       " '1772063068_F02': 'pyramidal SS',\n",
       " '1772060240_D06': 'pyramidal SS',\n",
       " '1772063063_D11': 'pyramidal SS',\n",
       " '1772062115_C11': 'pyramidal SS',\n",
       " '1772071041_C10': 'pyramidal SS',\n",
       " '1772060225_C12': 'pyramidal SS',\n",
       " '1772063068_G11': 'pyramidal SS',\n",
       " '1772067069_C05': 'pyramidal SS',\n",
       " '1772063065_C09': 'pyramidal SS',\n",
       " '1772063065_E02': 'pyramidal SS',\n",
       " '1772063068_G10': 'pyramidal SS',\n",
       " '1772067073_B04': 'pyramidal SS',\n",
       " '1772067074_D08': 'pyramidal SS',\n",
       " '1772071040_H01': 'pyramidal SS',\n",
       " '1772063062_F07': 'pyramidal SS',\n",
       " '1772062113_E01': 'pyramidal SS',\n",
       " '1772063071_E07': 'pyramidal SS',\n",
       " '1772063065_D02': 'pyramidal SS',\n",
       " '1772063071_C08': 'pyramidal SS',\n",
       " '1772063062_F05': 'pyramidal SS',\n",
       " '1772063068_A06': 'pyramidal SS',\n",
       " '1772066104_F10': 'pyramidal SS',\n",
       " '1772058177_G10': 'pyramidal SS',\n",
       " '1772063068_H01': 'pyramidal SS',\n",
       " '1772067073_F10': 'pyramidal SS',\n",
       " '1772063062_C04': 'pyramidal SS',\n",
       " '1772062109_A11': 'pyramidal SS',\n",
       " '1772063068_C10': 'pyramidal SS',\n",
       " '1772063068_G04': 'pyramidal SS',\n",
       " '1772063065_A03': 'pyramidal SS',\n",
       " '1772062128_A09': 'pyramidal SS',\n",
       " '1772063071_F08': 'pyramidal SS',\n",
       " '1772067058_G11': 'pyramidal CA1',\n",
       " '1772071015_D07': 'pyramidal SS',\n",
       " '1772071015_D08': 'pyramidal SS',\n",
       " '1772067054_G11': 'pyramidal CA1',\n",
       " '1772067064_A12': 'pyramidal SS',\n",
       " '1772067066_C03': 'pyramidal SS',\n",
       " '1772066095_D06': 'pyramidal CA1',\n",
       " '1772062109_F09': 'pyramidal SS',\n",
       " '1772067082_D08': 'pyramidal CA1',\n",
       " '1772060224_C03': 'pyramidal SS',\n",
       " '1772071040_H03': 'pyramidal SS',\n",
       " '1772067059_E04': 'pyramidal CA1',\n",
       " '1772067058_C12': 'pyramidal CA1',\n",
       " '1772066073_C01': 'pyramidal CA1',\n",
       " '1772067076_A05': 'pyramidal CA1',\n",
       " '1772067059_A05': 'pyramidal CA1',\n",
       " '1772067082_B12': 'pyramidal CA1',\n",
       " '1772066100_D12': 'pyramidal CA1',\n",
       " '1772067076_C01': 'pyramidal CA1',\n",
       " '1772067082_F05': 'pyramidal CA1',\n",
       " '1772067082_C10': 'pyramidal CA1',\n",
       " '1772067082_G07': 'pyramidal CA1',\n",
       " '1772066098_B05': 'pyramidal CA1',\n",
       " '1772066097_H07': 'pyramidal CA1',\n",
       " '1772066102_F02': 'pyramidal CA1',\n",
       " '1772063062_D03': 'pyramidal SS',\n",
       " '1772067064_A11': 'pyramidal SS',\n",
       " '1772067073_E06': 'pyramidal SS',\n",
       " '1772071040_F10': 'pyramidal SS',\n",
       " '1772071040_D11': 'pyramidal SS',\n",
       " '1772062116_B02': 'pyramidal SS',\n",
       " '1772071041_D08': 'pyramidal SS',\n",
       " '1772067064_G12': 'pyramidal SS',\n",
       " '1772062109_E09': 'pyramidal SS',\n",
       " '1772067074_A02': 'pyramidal SS',\n",
       " '1772067074_C04': 'pyramidal SS',\n",
       " '1772071040_F06': 'pyramidal SS',\n",
       " '1772067074_G06': 'pyramidal SS',\n",
       " '1772067063_B09': 'pyramidal SS',\n",
       " '1772071041_F02': 'pyramidal SS',\n",
       " '1772067073_B06': 'pyramidal SS',\n",
       " '1772067073_G04': 'pyramidal SS',\n",
       " '1772067070_B11': 'pyramidal SS',\n",
       " '1772062111_H10': 'pyramidal SS',\n",
       " '1772067063_A01': 'pyramidal SS',\n",
       " '1772071040_A11': 'pyramidal SS',\n",
       " '1772071041_E04': 'pyramidal SS',\n",
       " '1772062118_B11': 'pyramidal SS',\n",
       " '1772067070_G04': 'pyramidal SS',\n",
       " '1772071040_E02': 'pyramidal SS',\n",
       " '1772071041_D11': 'pyramidal SS',\n",
       " '1772071040_B06': 'pyramidal SS',\n",
       " '1772067070_H11': 'pyramidal SS',\n",
       " '1772063071_C01': 'pyramidal SS',\n",
       " '1772062111_B01': 'pyramidal SS',\n",
       " '1772063068_C01': 'pyramidal SS',\n",
       " '1772060240_B10': 'pyramidal SS',\n",
       " '1772060240_B01': 'pyramidal SS',\n",
       " '1772066096_B04': 'pyramidal CA1',\n",
       " '1772060225_E01': 'pyramidal SS',\n",
       " '1772063077_C12': 'pyramidal SS',\n",
       " '1772063065_F01': 'pyramidal SS',\n",
       " '1772062115_D01': 'pyramidal SS',\n",
       " '1772062118_A01': 'pyramidal SS',\n",
       " '1772063065_A01': 'pyramidal SS',\n",
       " '1772067070_D10': 'pyramidal SS',\n",
       " '1772071040_A01': 'pyramidal SS',\n",
       " '1772063068_B10': 'pyramidal SS',\n",
       " '1772067066_G02': 'pyramidal SS',\n",
       " '1772063077_G04': 'pyramidal SS',\n",
       " '1772063071_E01': 'pyramidal SS',\n",
       " '1772067070_D05': 'pyramidal SS',\n",
       " '1772062111_H11': 'pyramidal SS',\n",
       " '1772071041_B12': 'pyramidal SS',\n",
       " '1772063077_E05': 'pyramidal SS',\n",
       " '1772067073_F02': 'pyramidal SS',\n",
       " '1772062111_A09': 'pyramidal SS',\n",
       " '1772063061_A10': 'pyramidal SS',\n",
       " '1772062128_C12': 'pyramidal SS',\n",
       " '1772063061_A03': 'pyramidal SS',\n",
       " '1772063074_E06': 'pyramidal SS',\n",
       " '1772063064_H01': 'pyramidal SS',\n",
       " '1772071014_C08': 'pyramidal SS',\n",
       " '1772067064_H05': 'pyramidal SS',\n",
       " '1772063068_A12': 'pyramidal SS',\n",
       " '1772062109_H06': 'pyramidal SS',\n",
       " '1772062109_D03': 'pyramidal SS',\n",
       " '1772067065_G07': 'pyramidal SS',\n",
       " '1772062128_D01': 'pyramidal SS',\n",
       " '1772071014_H02': 'pyramidal SS',\n",
       " '1772063061_H04': 'pyramidal SS',\n",
       " '1772062115_C09': 'pyramidal SS',\n",
       " '1772063078_E02': 'pyramidal SS',\n",
       " '1772063061_H12': 'pyramidal SS',\n",
       " '1772063061_E05': 'pyramidal SS',\n",
       " '1772058177_G03': 'pyramidal SS',\n",
       " '1772063068_E07': 'pyramidal SS',\n",
       " '1772063061_C11': 'pyramidal SS',\n",
       " '1772063061_D11': 'pyramidal SS',\n",
       " '1772063061_E06': 'pyramidal SS',\n",
       " '1772063071_A03': 'pyramidal SS',\n",
       " '1772058171_C07': 'pyramidal SS',\n",
       " '1772063061_G12': 'pyramidal SS',\n",
       " '1772062128_H06': 'pyramidal SS',\n",
       " '1772062115_C08': 'pyramidal SS',\n",
       " '1772063061_C02': 'pyramidal SS',\n",
       " '1772063061_C06': 'pyramidal SS',\n",
       " '1772063061_H01': 'pyramidal SS',\n",
       " '1772063061_B06': 'pyramidal SS',\n",
       " '1772063071_E12': 'pyramidal SS',\n",
       " '1772058177_C10': 'pyramidal SS',\n",
       " '1772058177_H05': 'pyramidal SS',\n",
       " '1772063061_F06': 'pyramidal SS',\n",
       " '1772058177_H07': 'pyramidal SS',\n",
       " '1772058171_E01': 'pyramidal SS',\n",
       " '1772063061_A02': 'pyramidal SS',\n",
       " '1772063061_B01': 'pyramidal SS',\n",
       " '1772063068_F09': 'pyramidal SS',\n",
       " '1772063064_C02': 'pyramidal SS',\n",
       " '1772063061_G01': 'pyramidal SS',\n",
       " '1772063068_B04': 'pyramidal SS',\n",
       " '1772063077_C06': 'pyramidal SS',\n",
       " '1772063061_H08': 'pyramidal SS',\n",
       " '1772062128_E06': 'pyramidal SS',\n",
       " '1772063063_E11': 'pyramidal SS',\n",
       " '1772063070_F01': 'pyramidal SS',\n",
       " '1772063078_F03': 'pyramidal SS',\n",
       " '1772062115_D06': 'pyramidal SS',\n",
       " '1772063062_D12': 'pyramidal SS',\n",
       " '1772062113_D06': 'pyramidal SS',\n",
       " '1772063062_D06': 'pyramidal SS',\n",
       " '1772062114_F10': 'pyramidal SS',\n",
       " '1772063078_C04': 'pyramidal SS',\n",
       " '1772063068_C12': 'pyramidal SS',\n",
       " '1772062109_G11': 'pyramidal SS',\n",
       " '1772062115_E09': 'pyramidal SS',\n",
       " '1772063062_A03': 'pyramidal SS',\n",
       " '1772062114_G07': 'pyramidal SS',\n",
       " '1772062113_G03': 'pyramidal SS',\n",
       " '1772067063_H06': 'pyramidal SS',\n",
       " '1772062114_A02': 'pyramidal SS',\n",
       " '1772062109_D07': 'pyramidal SS',\n",
       " '1772062113_E03': 'pyramidal SS',\n",
       " '1772067073_H12': 'pyramidal SS',\n",
       " '1772062111_H03': 'pyramidal SS',\n",
       " '1772067073_D11': 'pyramidal SS',\n",
       " '1772063071_D09': 'pyramidal SS',\n",
       " '1772063071_E09': 'pyramidal SS',\n",
       " '1772062113_D03': 'pyramidal SS',\n",
       " '1772063070_D11': 'pyramidal SS',\n",
       " '1772067074_D06': 'pyramidal SS',\n",
       " '1772063063_A07': 'pyramidal SS',\n",
       " '1772062111_C10': 'pyramidal SS',\n",
       " '1772071041_E08': 'pyramidal SS',\n",
       " '1772063065_D09': 'pyramidal SS',\n",
       " '1772062111_E07': 'pyramidal SS',\n",
       " '1772067070_F11': 'pyramidal SS',\n",
       " '1772063063_H04': 'pyramidal SS',\n",
       " '1772067073_D12': 'pyramidal SS',\n",
       " '1772071040_G12': 'pyramidal SS',\n",
       " '1772062115_E10': 'pyramidal SS',\n",
       " '1772063068_E12': 'pyramidal SS',\n",
       " '1772060225_E04': 'pyramidal SS',\n",
       " '1772063068_G01': 'pyramidal SS',\n",
       " '1772063065_B10': 'pyramidal SS',\n",
       " '1772063065_H05': 'pyramidal SS',\n",
       " '1772060224_F11': 'pyramidal SS',\n",
       " '1772062113_A04': 'pyramidal SS',\n",
       " '1772071040_H08': 'pyramidal SS',\n",
       " '1772063074_C06': 'pyramidal SS',\n",
       " '1772063065_A08': 'pyramidal SS',\n",
       " '1772063071_B03': 'pyramidal SS',\n",
       " '1772067058_A05': 'pyramidal CA1',\n",
       " '1772063071_E05': 'pyramidal SS',\n",
       " '1772062113_B05': 'pyramidal SS',\n",
       " '1772063078_E04': 'pyramidal SS',\n",
       " '1772063068_C02': 'pyramidal SS',\n",
       " '1772063068_E08': 'pyramidal SS',\n",
       " '1772063068_C05': 'pyramidal SS',\n",
       " '1772063070_D09': 'pyramidal SS',\n",
       " '1772063077_B04': 'pyramidal SS',\n",
       " '1772062114_B06': 'pyramidal SS',\n",
       " '1772063065_B05': 'pyramidal SS',\n",
       " '1772063078_D10': 'pyramidal SS',\n",
       " '1772063078_E06': 'pyramidal SS',\n",
       " '1772063078_G09': 'pyramidal SS',\n",
       " '1772063070_F09': 'pyramidal SS',\n",
       " '1772063068_B07': 'pyramidal SS',\n",
       " '1772063068_A07': 'pyramidal SS',\n",
       " '1772062114_G09': 'pyramidal SS',\n",
       " '1772060224_C05': 'pyramidal SS',\n",
       " '1772063078_C10': 'pyramidal SS',\n",
       " '1772062128_F12': 'pyramidal SS',\n",
       " '1772060240_F09': 'pyramidal SS',\n",
       " '1772062128_A11': 'pyramidal SS',\n",
       " '1772060240_E07': 'pyramidal SS',\n",
       " '1772060240_E09': 'pyramidal SS',\n",
       " '1772060240_D04': 'pyramidal SS',\n",
       " '1772063068_D02': 'pyramidal SS',\n",
       " '1772063063_A02': 'pyramidal SS',\n",
       " '1772063068_E03': 'pyramidal SS',\n",
       " '1772060240_A02': 'pyramidal SS',\n",
       " '1772060240_C06': 'pyramidal SS',\n",
       " '1772060240_B09': 'pyramidal SS',\n",
       " '1772060240_A05': 'pyramidal SS',\n",
       " '1772060240_G02': 'pyramidal SS',\n",
       " '1772063065_A06': 'pyramidal SS',\n",
       " '1772063077_B02': 'pyramidal SS',\n",
       " '1772063068_E02': 'pyramidal SS',\n",
       " '1772063068_C11': 'pyramidal SS',\n",
       " '1772063068_C06': 'pyramidal SS',\n",
       " '1772063077_A07': 'pyramidal SS',\n",
       " '1772067054_A04': 'pyramidal CA1',\n",
       " '1772066073_G02': 'pyramidal CA1',\n",
       " '1772066098_A07': 'pyramidal CA1',\n",
       " '1772067060_B12': 'pyramidal CA1',\n",
       " '1772067059_F12': 'pyramidal CA1',\n",
       " '1772067082_C12': 'pyramidal CA1',\n",
       " '1772067069_B11': 'pyramidal SS',\n",
       " '1772067082_F04': 'pyramidal CA1',\n",
       " '1772066077_H11': 'pyramidal CA1',\n",
       " '1772071044_H04': 'pyramidal CA1',\n",
       " '1772067058_F04': 'pyramidal CA1',\n",
       " '1772066077_D08': 'pyramidal CA1',\n",
       " '1772066090_A08': 'pyramidal CA1',\n",
       " '1772067093_F09': 'pyramidal CA1',\n",
       " '1772066070_B03': 'pyramidal CA1',\n",
       " '1772071035_C06': 'pyramidal CA1',\n",
       " '1772071036_C05': 'pyramidal CA1',\n",
       " '1772067083_D06': 'pyramidal CA1',\n",
       " '1772066090_F10': 'pyramidal CA1',\n",
       " '1772066090_F06': 'pyramidal CA1',\n",
       " '1772071035_G06': 'pyramidal CA1',\n",
       " '1772071036_E02': 'pyramidal CA1',\n",
       " '1772067082_E08': 'pyramidal CA1',\n",
       " '1772066090_C03': 'pyramidal CA1',\n",
       " '1772066077_G03': 'pyramidal CA1',\n",
       " '1772067054_D06': 'pyramidal CA1',\n",
       " '1772067093_F07': 'pyramidal CA1',\n",
       " '1772067059_A07': 'pyramidal CA1',\n",
       " '1772067094_F06': 'pyramidal CA1',\n",
       " '1772066073_G06': 'pyramidal CA1',\n",
       " '1772071040_C06': 'pyramidal SS',\n",
       " '1772071040_D07': 'pyramidal SS',\n",
       " '1772062116_E12': 'pyramidal SS',\n",
       " '1772066073_D09': 'pyramidal CA1',\n",
       " '1772067058_F12': 'pyramidal CA1',\n",
       " '1772066080_B06': 'pyramidal CA1',\n",
       " '1772066090_G07': 'pyramidal CA1',\n",
       " '1772066099_A12': 'pyramidal CA1',\n",
       " '1772067058_H04': 'pyramidal CA1',\n",
       " '1772067059_G08': 'pyramidal CA1',\n",
       " '1772067070_D03': 'pyramidal SS',\n",
       " '1772071044_H01': 'pyramidal CA1',\n",
       " '1772062111_B08': 'pyramidal SS',\n",
       " '1772066099_F07': 'pyramidal CA1',\n",
       " '1772067076_C05': 'pyramidal CA1',\n",
       " '1772071040_H11': 'pyramidal SS',\n",
       " '1772066077_H01': 'pyramidal CA1',\n",
       " '1772066097_E07': 'pyramidal CA1',\n",
       " '1772067070_C07': 'pyramidal SS',\n",
       " '1772071017_A02': 'pyramidal SS',\n",
       " '1772062109_C04': 'pyramidal SS',\n",
       " '1772071017_G07': 'pyramidal SS',\n",
       " '1772067074_A09': 'pyramidal SS',\n",
       " '1772071041_C06': 'pyramidal SS',\n",
       " '1772067070_D09': 'pyramidal SS',\n",
       " '1772067094_B06': 'pyramidal CA1',\n",
       " '1772067063_C06': 'pyramidal SS',\n",
       " '1772063063_D03': 'pyramidal SS',\n",
       " '1772071041_B09': 'pyramidal SS',\n",
       " '1772067094_A03': 'pyramidal CA1',\n",
       " '1772067066_D09': 'pyramidal SS',\n",
       " '1772071017_E11': 'pyramidal SS',\n",
       " '1772071017_B07': 'pyramidal SS',\n",
       " '1772060225_G12': 'pyramidal SS',\n",
       " '1772071041_A09': 'pyramidal SS',\n",
       " '1772067069_D09': 'pyramidal SS',\n",
       " '1772066107_A06': 'pyramidal CA1',\n",
       " '1772066090_G08': 'pyramidal CA1',\n",
       " '1772066076_C06': 'pyramidal CA1',\n",
       " '1772066102_C12': 'pyramidal CA1',\n",
       " '1772066070_H06': 'pyramidal CA1',\n",
       " '1772066090_H06': 'pyramidal CA1',\n",
       " '1772066076_D09': 'pyramidal CA1',\n",
       " '1772066080_H01': 'pyramidal CA1',\n",
       " '1772066080_E04': 'pyramidal CA1',\n",
       " '1772066076_E02': 'pyramidal CA1',\n",
       " '1772066099_D09': 'pyramidal CA1',\n",
       " '1772066080_D06': 'pyramidal CA1',\n",
       " '1772066070_H11': 'pyramidal CA1',\n",
       " '1772067076_B12': 'pyramidal CA1',\n",
       " '1772066080_D10': 'pyramidal CA1',\n",
       " '1772066099_F03': 'pyramidal CA1',\n",
       " '1772067076_F06': 'pyramidal CA1',\n",
       " '1772066108_H03': 'pyramidal CA1',\n",
       " '1772066077_A05': 'pyramidal CA1',\n",
       " '1772066076_D05': 'pyramidal CA1',\n",
       " '1772066076_A05': 'pyramidal CA1',\n",
       " '1772067059_B09': 'pyramidal CA1',\n",
       " '1772067076_C12': 'pyramidal CA1',\n",
       " '1772067060_E11': 'pyramidal CA1',\n",
       " '1772066070_F03': 'pyramidal CA1',\n",
       " '1772066102_B10': 'pyramidal CA1',\n",
       " '1772067054_A07': 'pyramidal CA1',\n",
       " '1772067096_G07': 'pyramidal CA1',\n",
       " '1772066090_E03': 'pyramidal CA1',\n",
       " '1772066108_D11': 'pyramidal CA1',\n",
       " '1772066070_A08': 'pyramidal CA1',\n",
       " '1772066076_D07': 'pyramidal CA1',\n",
       " '1772066097_G06': 'pyramidal CA1',\n",
       " '1772066090_H03': 'pyramidal CA1',\n",
       " '1772066090_E06': 'pyramidal CA1',\n",
       " '1772066102_D10': 'pyramidal CA1',\n",
       " '1772066070_C01': 'pyramidal CA1',\n",
       " '1772066090_F01': 'pyramidal CA1',\n",
       " '1772066070_C11': 'pyramidal CA1',\n",
       " '1772066077_D05': 'pyramidal CA1',\n",
       " '1772066070_E05': 'pyramidal CA1',\n",
       " '1772066070_C04': 'pyramidal CA1',\n",
       " '1772066100_B12': 'pyramidal CA1',\n",
       " '1772066097_G07': 'pyramidal CA1',\n",
       " '1772066070_E08': 'pyramidal CA1',\n",
       " '1772066077_E06': 'pyramidal CA1',\n",
       " '1772067096_H05': 'pyramidal CA1',\n",
       " '1772067082_D09': 'pyramidal CA1',\n",
       " '1772066074_C01': 'pyramidal CA1',\n",
       " '1772067096_E02': 'pyramidal CA1',\n",
       " '1772067096_G04': 'pyramidal CA1',\n",
       " '1772066102_H06': 'pyramidal CA1',\n",
       " '1772067094_A04': 'pyramidal CA1',\n",
       " '1772066080_B10': 'pyramidal CA1',\n",
       " '1772066090_C11': 'pyramidal CA1',\n",
       " '1772066077_A04': 'pyramidal CA1',\n",
       " '1772066077_H08': 'pyramidal CA1',\n",
       " '1772066070_A04': 'pyramidal CA1',\n",
       " '1772066090_H07': 'pyramidal CA1',\n",
       " '1772067082_G01': 'pyramidal CA1',\n",
       " '1772066073_F08': 'pyramidal CA1',\n",
       " '1772066090_D11': 'pyramidal CA1',\n",
       " '1772067076_D08': 'pyramidal CA1',\n",
       " '1772067082_D01': 'pyramidal CA1',\n",
       " '1772067083_D02': 'pyramidal CA1',\n",
       " '1772067082_A11': 'pyramidal CA1',\n",
       " '1772066107_E06': 'pyramidal CA1',\n",
       " '1772067094_G06': 'pyramidal CA1',\n",
       " '1772066077_B01': 'pyramidal CA1',\n",
       " '1772066074_F03': 'pyramidal CA1',\n",
       " '1772067093_B04': 'pyramidal CA1',\n",
       " '1772066070_C06': 'pyramidal CA1',\n",
       " '1772066070_C05': 'pyramidal CA1',\n",
       " '1772066070_E12': 'pyramidal CA1',\n",
       " '1772066070_G05': 'pyramidal CA1',\n",
       " '1772066070_D08': 'pyramidal CA1',\n",
       " '1772066090_G10': 'pyramidal CA1',\n",
       " '1772066090_A01': 'pyramidal CA1',\n",
       " '1772066070_B07': 'pyramidal CA1',\n",
       " '1772066090_D07': 'pyramidal CA1',\n",
       " '1772066100_A08': 'pyramidal CA1',\n",
       " '1772066107_G05': 'pyramidal CA1',\n",
       " '1772066070_H12': 'pyramidal CA1',\n",
       " '1772066077_G12': 'pyramidal CA1',\n",
       " '1772066070_F02': 'pyramidal CA1',\n",
       " '1772066077_B12': 'pyramidal CA1',\n",
       " '1772066089_C03': 'pyramidal CA1',\n",
       " '1772066077_C10': 'pyramidal CA1',\n",
       " '1772071044_G04': 'pyramidal CA1',\n",
       " '1772066090_H05': 'pyramidal CA1',\n",
       " '1772066090_B01': 'pyramidal CA1',\n",
       " '1772066090_F07': 'pyramidal CA1',\n",
       " '1772066108_E08': 'pyramidal CA1',\n",
       " '1772066107_C10': 'pyramidal CA1',\n",
       " '1772066070_C09': 'pyramidal CA1',\n",
       " '1772066077_F04': 'pyramidal CA1',\n",
       " '1772066090_G09': 'pyramidal CA1',\n",
       " '1772066090_A11': 'pyramidal CA1',\n",
       " '1772062116_F11': 'pyramidal SS',\n",
       " '1772066070_G11': 'pyramidal CA1',\n",
       " '1772066077_G09': 'pyramidal CA1',\n",
       " '1772066073_E05': 'pyramidal CA1',\n",
       " '1772067094_C04': 'pyramidal CA1',\n",
       " '1772066070_B05': 'pyramidal CA1',\n",
       " '1772066073_G08': 'pyramidal CA1',\n",
       " '1772066077_C09': 'pyramidal CA1',\n",
       " '1772066107_A12': 'pyramidal CA1',\n",
       " '1772066074_F01': 'pyramidal CA1',\n",
       " '1772067096_D04': 'pyramidal CA1',\n",
       " '1772066070_C03': 'pyramidal CA1',\n",
       " '1772066080_D12': 'pyramidal CA1',\n",
       " '1772067096_F12': 'pyramidal CA1',\n",
       " '1772066090_E04': 'pyramidal CA1',\n",
       " '1772067054_C07': 'pyramidal CA1',\n",
       " '1772066089_A02': 'pyramidal CA1',\n",
       " '1772066070_H04': 'pyramidal CA1',\n",
       " '1772066107_E01': 'pyramidal CA1',\n",
       " '1772067096_C11': 'pyramidal CA1',\n",
       " '1772066070_F12': 'pyramidal CA1',\n",
       " '1772066107_B09': 'pyramidal CA1',\n",
       " '1772066070_E09': 'pyramidal CA1',\n",
       " '1772066090_C10': 'pyramidal CA1',\n",
       " '1772066070_H08': 'pyramidal CA1',\n",
       " '1772066099_C03': 'pyramidal CA1',\n",
       " '1772066090_E09': 'pyramidal CA1',\n",
       " '1772066070_F07': 'pyramidal CA1',\n",
       " '1772066070_D11': 'pyramidal CA1',\n",
       " '1772066089_D12': 'pyramidal CA1',\n",
       " '1772066090_C09': 'pyramidal CA1',\n",
       " '1772067094_D09': 'pyramidal CA1',\n",
       " '1772067059_A12': 'pyramidal CA1',\n",
       " '1772067096_A04': 'pyramidal CA1',\n",
       " '1772067058_G12': 'pyramidal CA1',\n",
       " '1772067076_D10': 'pyramidal CA1',\n",
       " '1772066102_G02': 'pyramidal CA1',\n",
       " '1772071035_A07': 'pyramidal CA1',\n",
       " '1772071045_F12': 'pyramidal CA1',\n",
       " '1772066099_D11': 'pyramidal CA1',\n",
       " '1772071044_G10': 'pyramidal CA1',\n",
       " '1772067076_A01': 'pyramidal CA1',\n",
       " '1772071045_F02': 'pyramidal CA1',\n",
       " '1772071045_G12': 'pyramidal CA1',\n",
       " '1772067076_A02': 'pyramidal CA1',\n",
       " '1772067054_D11': 'pyramidal CA1',\n",
       " '1772071036_D10': 'pyramidal CA1',\n",
       " '1772067094_H12': 'pyramidal CA1',\n",
       " '1772067058_F02': 'pyramidal CA1',\n",
       " '1772067096_D10': 'pyramidal CA1',\n",
       " '1772066099_A04': 'pyramidal CA1',\n",
       " '1772067094_F01': 'pyramidal CA1',\n",
       " '1772066108_H02': 'pyramidal CA1',\n",
       " '1772067094_G07': 'pyramidal CA1',\n",
       " '1772071036_F11': 'pyramidal CA1',\n",
       " '1772067094_H04': 'pyramidal CA1',\n",
       " '1772067096_C05': 'pyramidal CA1',\n",
       " '1772067096_C12': 'pyramidal CA1',\n",
       " '1772067054_D04': 'pyramidal CA1',\n",
       " '1772067094_H07': 'pyramidal CA1',\n",
       " '1772067058_G07': 'pyramidal CA1',\n",
       " '1772067094_H11': 'pyramidal CA1',\n",
       " '1772067096_H06': 'pyramidal CA1',\n",
       " '1772067059_E11': 'pyramidal CA1',\n",
       " '1772067096_E04': 'pyramidal CA1',\n",
       " '1772071044_E08': 'pyramidal CA1',\n",
       " '1772067094_F02': 'pyramidal CA1',\n",
       " '1772071035_D08': 'pyramidal CA1',\n",
       " '1772071036_H11': 'pyramidal CA1',\n",
       " '1772067094_A02': 'pyramidal CA1',\n",
       " '1772067054_G10': 'pyramidal CA1',\n",
       " '1772067093_H02': 'pyramidal CA1',\n",
       " '1772066102_A07': 'pyramidal CA1',\n",
       " '1772067058_E06': 'pyramidal CA1',\n",
       " '1772067093_A03': 'pyramidal CA1',\n",
       " '1772067058_G10': 'pyramidal CA1',\n",
       " '1772071036_H03': 'pyramidal CA1',\n",
       " '1772067096_B12': 'pyramidal CA1',\n",
       " '1772067094_A12': 'pyramidal CA1',\n",
       " '1772067096_A09': 'pyramidal CA1',\n",
       " '1772067060_E12': 'pyramidal CA1',\n",
       " '1772067094_C02': 'pyramidal CA1',\n",
       " '1772066102_D04': 'pyramidal CA1',\n",
       " '1772067054_B03': 'pyramidal CA1',\n",
       " '1772067058_B01': 'pyramidal CA1',\n",
       " '1772067082_G02': 'pyramidal CA1',\n",
       " '1772067054_E07': 'pyramidal CA1',\n",
       " '1772066096_D07': 'pyramidal CA1',\n",
       " '1772066095_C11': 'pyramidal CA1',\n",
       " '1772067054_H06': 'pyramidal CA1',\n",
       " '1772066073_E09': 'pyramidal CA1',\n",
       " '1772071044_A11': 'pyramidal CA1',\n",
       " '1772067059_H12': 'pyramidal CA1',\n",
       " '1772067058_E11': 'pyramidal CA1',\n",
       " '1772067060_C03': 'pyramidal CA1',\n",
       " '1772066073_H02': 'pyramidal CA1',\n",
       " '1772071035_H06': 'pyramidal CA1',\n",
       " '1772066080_C02': 'pyramidal CA1',\n",
       " '1772071045_B06': 'pyramidal CA1',\n",
       " '1772066095_E07': 'pyramidal CA1',\n",
       " '1772071036_F12': 'pyramidal CA1',\n",
       " '1772071044_A09': 'pyramidal CA1',\n",
       " '1772067059_D05': 'pyramidal CA1',\n",
       " '1772067058_A11': 'pyramidal CA1',\n",
       " '1772071044_E12': 'pyramidal CA1',\n",
       " '1772067076_D06': 'pyramidal CA1',\n",
       " '1772066076_H02': 'pyramidal CA1',\n",
       " '1772066099_A07': 'pyramidal CA1',\n",
       " '1772066074_B02': 'pyramidal CA1',\n",
       " '1772071044_A07': 'pyramidal CA1',\n",
       " '1772066077_B07': 'pyramidal CA1',\n",
       " '1772066080_H11': 'pyramidal CA1',\n",
       " '1772066099_B05': 'pyramidal CA1',\n",
       " '1772071044_F04': 'pyramidal CA1',\n",
       " '1772071036_B10': 'pyramidal CA1',\n",
       " '1772066107_G03': 'pyramidal CA1',\n",
       " '1772066099_G02': 'pyramidal CA1',\n",
       " '1772067057_D06': 'pyramidal CA1',\n",
       " '1772066076_H07': 'pyramidal CA1',\n",
       " '1772071035_A12': 'pyramidal CA1',\n",
       " '1772071044_B06': 'pyramidal CA1',\n",
       " '1772071035_C09': 'pyramidal CA1',\n",
       " '1772071045_A07': 'pyramidal CA1',\n",
       " '1772067058_F06': 'pyramidal CA1',\n",
       " '1772066099_D02': 'pyramidal CA1',\n",
       " '1772071036_E07': 'pyramidal CA1',\n",
       " '1772066089_C07': 'pyramidal CA1',\n",
       " '1772071045_F04': 'pyramidal CA1',\n",
       " '1772071036_C12': 'pyramidal CA1',\n",
       " '1772066107_B02': 'pyramidal CA1',\n",
       " '1772071036_A09': 'pyramidal CA1',\n",
       " '1772066080_F12': 'pyramidal CA1',\n",
       " '1772071035_H04': 'pyramidal CA1',\n",
       " '1772071036_G08': 'pyramidal CA1',\n",
       " '1772067057_G05': 'pyramidal CA1',\n",
       " '1772071036_A01': 'pyramidal CA1',\n",
       " '1772071035_F04': 'pyramidal CA1',\n",
       " '1772071036_C08': 'pyramidal CA1',\n",
       " '1772067059_G04': 'pyramidal CA1',\n",
       " '1772066074_C08': 'pyramidal CA1',\n",
       " '1772066102_B12': 'pyramidal CA1',\n",
       " '1772066107_A01': 'pyramidal CA1',\n",
       " '1772071036_D07': 'pyramidal CA1',\n",
       " '1772067054_A12': 'pyramidal CA1',\n",
       " '1772066080_F06': 'pyramidal CA1',\n",
       " '1772071035_C04': 'pyramidal CA1',\n",
       " '1772066107_H11': 'pyramidal CA1',\n",
       " '1772067059_D04': 'pyramidal CA1',\n",
       " '1772066074_E07': 'pyramidal CA1',\n",
       " '1772066107_E03': 'pyramidal CA1',\n",
       " '1772066107_E05': 'pyramidal CA1',\n",
       " '1772066077_A12': 'pyramidal CA1',\n",
       " '1772067059_G07': 'pyramidal CA1',\n",
       " '1772071036_D11': 'pyramidal CA1',\n",
       " '1772067058_B06': 'pyramidal CA1',\n",
       " '1772067059_C12': 'pyramidal CA1',\n",
       " ...}"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "annotations"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Create loom file"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [],
   "source": [
    "export2loom(exp_mtx, regulons[0:100], annotations,\n",
    "                LOOM_FILE,\n",
    "                title = \"Zeisel et al.\",\n",
    "                nomenclature = \"MGI\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The metadata can become too big and therefore we provide an option to compress it.\n",
    "\n",
    "__Cave:__ Should only be used if the loom file is going to be used with SCope."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/Users/bramvandesande/miniconda3/envs/pyscenic_dev/lib/python3.6/site-packages/scikit_learn-0.20.1-py3.6-macosx-10.7-x86_64.egg/sklearn/cluster/k_means_.py:971: ConvergenceWarning: Number of distinct clusters (1) found smaller than n_clusters (2). Possibly due to duplicate points in X.\n",
      "  return_n_iter=True)\n"
     ]
    }
   ],
   "source": [
    "export2loom(exp_mtx, regulons, annotations,\n",
    "                LOOM_FILE,\n",
    "                title = \"Zeisel et al.\",\n",
    "                nomenclature = \"MGI\", compress=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3.6 (pyscenic_dev)",
   "language": "python",
   "name": "pyscenic_dev"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
